<?php
	/*Struct -> User*/
	$server->wsdl->addComplexType(
		'User',
		'complexType',
		'struct',
		'all',
		'',
		array(
			'Userid' => array('name'=>'userid','type'=>'xsd:string'),
			'Fname' => array('name'=>'fname','type'=>'xsd:string'),
			'Lname' => array('name'=>'lname','type'=>'xsd:string'),
			'Age' => array('name'=>'age','type'=>'xsd:string')
		)
	);
	/*Array<User> -> UserArray*/
	$server->wsdl->addComplexType(
		'UserArray',
		'complexType',
		'array',
		'',
		'SOAP-ENC:Array',
		array(),
		array(
			array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:User[]')
		),
		'tns:User'
	);

	/*Struct -> Product*/
	$server->wsdl->addComplexType(
		'Product',
		'complexType',
		'struct',
		'all',
		'',
		array(
			'Name' => array('name'=>'name','type'=>'xsd:string'),
			'Code' => array('name'=>'product_number','type'=>'xsd:string'),
			'Price' => array('name'=>'price','type'=>'xsd:decimal'),
			'Ammount' => array('name'=>'quantity','type'=>'xsd:int')
		)
	);
	
	/*Array<Product> -> ProductArray*/
	$server->wsdl->addComplexType(
		'ProductArray',
		'complexType',
		'array',
		'',
		'SOAP-ENC:Array',
		array(),
		array(
			array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Product[]')
		),
		'tns:Product'
	);
	$server->wsdl->addComplexType(
		'WSStatus',
		'complexType',
		'struct',
		'all',
		'',
		array(
			'Code' => array('name'=>'code','type'=>'xsd:string'),
			'Desc' => array('name'=>'desc','type'=>'xsd:string')
		)
	);
	$server->wsdl->addComplexType(
		'WSSysDateTime',
		'complexType',
		'struct',
		'all',
		'',
		array(
			'SysDate' => array('name'=>'sysdate','type'=>'xsd:string'),
			'SysTime' => array('name'=>'systime','type'=>'xsd:string')
		)
	);
	
	/*Struct -> User*/
	$server->wsdl->addComplexType(
		'BPHistory',
		'complexType',
		'struct',
		'all',
		'',
		array(
			'BPid' => array('name'=>'bpid','type'=>'xsd:string'),
			'BPDate' => array('name'=>'bpdate','type'=>'xsd:string'),
			'BPTime' => array('name'=>'bptime','type'=>'xsd:string'),
			'BPSyst' => array('name'=>'bpsyst','type'=>'xsd:string'),
			'BPDias' => array('name'=>'bpdias','type'=>'xsd:string'),
			'BPPulse' => array('name'=>'bppulse','type'=>'xsd:string')
		)
	);
	/*Array<User> -> UserArray*/
	$server->wsdl->addComplexType(
		'BPHistoryArray',
		'complexType',
		'array',
		'',
		'SOAP-ENC:Array',
		array(),
		array(
			array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:BPHistory[]')
		),
		'tns:BPHistory'
	);
?>